/*
============================================================================
 Name        : JpegCDocument.cpp
 Author      : Jian
 Version     :
 Copyright   : Hesine
 Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "JpegCAppUi.h"
#include "JpegCDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CJpegCDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CJpegCDocument* CJpegCDocument::NewL( CEikApplication&
                                                          aApp )
    {
    CJpegCDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CJpegCDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CJpegCDocument* CJpegCDocument::NewLC( CEikApplication&
                                                           aApp )
    {
    CJpegCDocument* self =
        new ( ELeave ) CJpegCDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CJpegCDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CJpegCDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CJpegCDocument::CJpegCDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CJpegCDocument::CJpegCDocument( CEikApplication& aApp )
    : CAknDocument( aApp )
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CJpegCDocument::~CJpegCDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CJpegCDocument::~CJpegCDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CJpegCDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CJpegCDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return ( static_cast <CEikAppUi*> ( new ( ELeave )
                                        CJpegCAppUi ) );
    }

// End of File
